import request from '@/utils/request';

export default {
  getCode() {
    return request({
      url: `/educenter/code?t=${new Date().getTime()}`,
      method: 'get',
    })
  },
  //登录
  login(user) {
    return request({
      url: `/educenter/member/login`,
      method: 'post',
      data: user
    })
  },
  //根据token获取用户信息
  getLoginUserInfo() {
    return request({
      url: `/educenter/member/getMemberInfo`,
      method: 'get'
    })
  },
  //获取友情链接信息
  getAllLinks() {
    return request({
      url: `/educms/cms-links/getAllLinks`,
      method: 'get'
    })
  }
}